<?php

/**
 * The definitions of error messages from the database.
 * 
 * @author Cesar Augustus Silva <cesaraugustussilva@linuxmail.org>
 * @copyright Copyright (c) 2013, Cesar Augustus Silva
 * @license http://www.gnu.org/licenses/gpl.html GNU GPL v3.0
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <­http://www.gnu.org/licenses/>.
 */

define('_ERRMSG_1045_', 'Acesso negado para o usuário "'._DB_USER_.'"');
define('_ERRMSG_1049_', 'Banco de dados desconhecido "'._DB_NAME_.'"');
define('_ERRMSG_1054_', 'Coluna desconhecida');
define('_ERRMSG_1062_', 'Entrada de chave primária duplicada');
define('_ERRMSG_1064_', 'Contém um erro de sintaxe SQL no "'.$_SERVER['PHP_SELF'].'"');
define('_ERRMSG_1136_', 'Contagem de colunas não confere com a contagem de valores na sintaxe SQL');
define('_ERRMSG_1146_', 'Não existe tabela');
define('_ERRMSG_2002_', 'Não é possível conectar ao servidor MySQL');
define('_ERRMSG_2005_', 'Host do servidor MySQL desconhecido "'._DB_SERVER_.'"');

define('_ERRPREG_1054_', '|column \'([a-z0-9]+)\' in|U');
define('_ERRPREG_1062_', '|entry \'([a-z0-9]+)\' for|U');
define('_ERRPREG_1146_', '|\''._DB_NAME_.'\.([a-z0-9]+)\'|U');